package com.ask.pcb.product.generator.controller;


import com.ask.pcb.product.common.utils.R;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {
    @Value("${product.user.name}")
    private String userName;


    @Value("${product.user.message}")
    private String message;



    @RequestMapping("/test")
    public R test(){
        return  R.ok().put("name",userName).put("message",message);
    }
}
